package com.education.welco.mapper;

import com.education.welco.pojo.SAnsweringLike;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 课堂答疑用户点赞 数据层
 *
 * @author d
 * @date 2022-06-25
 */
@Repository
public interface SAnsweringLikeMapper {

    /**
     * 查询课堂答疑用户点赞信息
     *
     * @param cLikeitId 课堂答疑用户点赞ID
     * @return 课堂答疑用户点赞信息
     */
    public SAnsweringLike selectSAnsweringLikeById(String cLikeitId);

    /**
     * 查询课堂答疑用户点赞列表
     *
     * @param sAnsweringLike 课堂答疑用户点赞信息
     * @return 课堂答疑用户点赞集合
     */
    public List<SAnsweringLike> selectSAnsweringLikeList(SAnsweringLike sAnsweringLike);

    /**
     * 新增课堂答疑用户点赞
     *
     * @param sAnsweringLike 课堂答疑用户点赞信息
     * @return 结果
     */
    public int insertSAnsweringLike(SAnsweringLike sAnsweringLike);

    /**
     * 修改课堂答疑用户点赞
     *
     * @param sAnsweringLike 课堂答疑用户点赞信息
     * @return 结果
     */
    public int updateSAnsweringLike(SAnsweringLike sAnsweringLike);

    /**
     * 删除课堂答疑用户点赞
     *
     * @param cLikeitId 课堂答疑用户点赞ID
     * @return 结果
     */
    public int deleteSAnsweringLikeById(String cLikeitId);

    /**
     * 批量删除课堂答疑用户点赞
     *
     * @param cLikeitIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSAnsweringLikeByIds(String[] cLikeitIds);

    List<SAnsweringLike> selectSysUserforumsLikeitList(SAnsweringLike selectLikeIt);

    public int updateSysUserforumsLikeit(SAnsweringLike selectLikeIt);

    int insertSysUserforumsLikeit(SAnsweringLike likeIt);

    List<String> selectForumsIdsByUserIdAndType(@Param("userId") String userId,
                                                @Param("type") String type);
}